package com.malty.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author malty
 * @TableName user_info
 */
@TableName(value = "user_info")
@Data
@NoArgsConstructor
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String account;
    private String password;
    private String role;
    private String accessToken;
    private String secretKey;
    private String status;
    private Date createTime;
    private Date updateTime;

    public UserInfo(String account, String password, String accessToken, String secretKey) {
        this.account = account;
        this.password = password;
        this.accessToken = accessToken;
        this.secretKey = secretKey;
    }
}